#ifndef TCPSOCKETDEOM_H
#define TCPSOCKETDEOM_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>
#include <QObject>

namespace Ui {
class TcpSocketDeom;
}

class TcpSocketDeom : public QWidget
{
    Q_OBJECT

public:
    explicit TcpSocketDeom(QWidget *parent = 0);
    ~TcpSocketDeom();

private slots:

    void newConnect_Slot();

    void readData();

    void on_Listen_clicked();

    void on_Send_Button_clicked();

    void on_Connect_clicked();

private:
    Ui::TcpSocketDeom *ui;

    QTcpServer *tcpServer;
    QTcpSocket *tcpSocket;

    int times;
};

#endif // TCPSOCKETDEOM_H
